package com.site.wisdom_construction.service.userAuthorityModule;

import com.site.wisdom_construction.dao.userAuthorityModule.RoleDao;
import com.site.wisdom_construction.entity.userAuthorityModule.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/28
 * @Description
 */
@Service
public class RoleService implements RoleDao {
    @Autowired
    private RoleDao roleDao;

    @Override
    public int insertRole(Map map) {
        return roleDao.insertRole(map);
    }

    @Override
    public int deleteRole(Map map) {
        return roleDao.deleteRole(map);
    }

    @Override
    public int updateRole(Map map) {
        return roleDao.updateRole(map);
    }

    @Override
    public List<Role> findRoleByPage(Map map) {
        return roleDao.findRoleByPage(map);
    }

    @Override
    public long Total(Map map) {
        return roleDao.Total(map);
    }

    @Override
    public List<Integer> findRoleByAll(Map map) {
        return roleDao.findRoleByAll(map);
    }

    @Override
    public Role findRoleById(Integer id) {
        return roleDao.findRoleById(id);
    }
}
